package com.iplay.thezen.state;

/**
 * @author dangwu
 * @since 2021/9/24 4:24 下午
 */
public class ConcreteState2 extends State{
    @Override
    public void handle1() {
        //设置当前状态为stat1
        super.context.setCurrentState(Context.STATE1);
        //过渡到state1状态，由Context实现
        super.context.handle1();
    }

    @Override
    public void handle2() {
        //本状态下必须处理的逻辑
        System.out.println("222222222");
    }
}
